package com.globallogic.dmytro_zakharenko.university.person;

public class AdministrationPersonal extends Person { 
	
	private double mBonus;
	
	/**
	 * Constructor
	 * 
	 * @param firstName
	 * @param lastName
	 * @param dateOfBirth
	 * @param placeOfBirth
	 * @param salary
	 */
	public AdministrationPersonal(String firstname, String lastname, int dateOfBirth, String placeOfBirth, double salary) {
		super(firstname, lastname, dateOfBirth, placeOfBirth, salary);
		this.setBonus();
		this.setSalary();
	}
	
	/**
	 * set bonus for the administration personal
	 */
	private void setBonus() {
		this.mBonus = this.mSalary / 2;
	}
	
	/**
	 * set salary for the administration personal
	 */
	private void setSalary() {
		this.mSalary += this.mBonus; 
	}	
}
